package com.lian.chatroom.server.session;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collections;
import java.util.Set;

/**
 * 群聊实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Group {

    // 聊天室名称
    private String groupName;
    // 聊天室成员
    private Set<String> members;

    //定义常量，返回空set集合
    public static final Group EMPTY_GROUP = new Group("empty", Collections.emptySet());
}
